package com.sage.dao.model;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="i_isp")
//@Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
public class ISP extends BeseEntity{
	
	
	/*@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, targetEntity=SMSTo.class)
	@JoinColumn(name="smsid")
	@OrderBy("sendOrder")
	private List<SMSTo> smsRecipients;*/
	
	
	
	private String name;
	
	@Column(name="pn_key")
	private String pnKey;
	
	private String descript;
	
	@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, targetEntity=ServerISP.class)
	@JoinColumn(name="isp")
	private List<ServerISP> serverISPs;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPnKey() {
		return pnKey;
	}

	public void setPnKey(String pnKey) {
		this.pnKey = pnKey;
	}

	public String getDescript() {
		return descript;
	}

	public void setDescript(String descript) {
		this.descript = descript;
	}
	
	public List<ServerISP> getServerISPs() {
		return serverISPs;
	}

	public void setServerISPs(List<ServerISP> serverISPs) {
		this.serverISPs = serverISPs;
	}
	
}
